<?php
class BaseDatosController extends ControllerBase
{
	public function admin($array)
	{
		$data['nom_sistema'] = $array["nombre_sistema"];
		$data['arrayscriptJs'] = array("base_datos.js");
		$this->view->show("person/respaldo_bd.php", $data);
	}
	
	
	public function backup_bd($array)
	{
		require 'models/BaseDatosModel.php';
		$basedatos = new BaseDatosModel();
		$result = $basedatos->backUp();
		if(!$result)
		{
			echo("FALLO");
		}
	}
}
?>
